#include "uart_interaction.h"
#include <QApplication>
#include <QTranslator>
#include <QtWidgets>
#include <Windows.h>

int main(int argc, char *argv[])
{
  QApplication a(argc, argv);
  QTranslator translator;
  translator.load("./MySerial_zh_CN.qm");
  a.installTranslator(&translator);

  UartNamespace::serial w;
  w.setStyleSheet("QMainWindow { border: 1px solid black; }"
                  "QMainWindow::separator { margin-left: 1px; margin-right: 1px; }"
                  "QMainWindow::separator:hover { margin-left: 1px; margin-right: 1px; }");
  w.show();

  return a.exec();
}
